﻿namespace HZY.Host.Admin.Models.Dtos.Systems;

/// <summary>
/// 上传文件配置信息
/// </summary>
public class UploadFileSaveDto
{
    /// <summary>
    /// 保存相对路径
    /// </summary>
    public string? RelativePath { get; set; }

    /// <summary>
    /// 文件后缀，为空使用默认配置
    /// </summary>
    public List<string> Extensions { get; set; } = [];

    /// <summary>
    /// 文件大小限制 1KB 1Mb
    /// </summary>
    public string? FileSizeLimit { get; set; }

    /// <summary>
    /// 文件大小限制
    /// </summary>
    public long? FileSizeByte => FileSizeLimit?.ToStorageByteLength();
}